<!doctype html>
<html>
<head> 
	<title>修改密码</title>
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
	<meta name="format-detection" content="telephone=no"/> <!--禁止数字串在ok手机中被识别成电话号码-->
	<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
	<!-- ICO -->
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css2/main.css" media="all" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css2/style.css" media="all" />
	<!-- iconfont图形样式 -->
    <link rel="stylesheet" href="__PUBLIC__/css2/iconfont/iconfont.css" type="text/css">
</head>
<style type="text/css">
	#submit {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 46px;
    font-size: 14px;
    color: #fff;
    background-color: #09BB07;
    border: 0 none;
    cursor: pointer;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
	}
</style>
<body>
<!--header页头文件-->

<div class="lr">
	<!-- <h1><img src="__PUBLIC__/images/logo.png"></h1> -->
	<form method="post" id="commentForm">
	<ul>
		<li><input id="" type="password" maxlength="50" autocomplete="off" placeholder="请输入旧密码" name="password" value=""></li>
		<li><input id="" type="password" maxlength="50" autocomplete="off" placeholder="请输入新密码" name="password1" value=""></li>
        <li><input id="" type="password" maxlength="50" autocomplete="off" placeholder="请再次输入新密码" name="password2" value=""></li>
	</ul>
	<div class="lr_sub">
		<!-- <input type="submit" value="=立即登录=" id="submit" class="submit"> -->
		<button id="submit" class="submit" type="button">提交</button>
	</div>
	</form>
</div>
<div class="lr_ft">
	<ul>
		<li><a href="register.html">我要注册</a></li>
		<li><a href="wjpwd.html">忘记密码</a></li>
	</ul>
</div>
<script src="__PUBLIC__/js/jquery-1.10.1.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/plugins/layer/layer.min.js"></script>
<script type="text/javascript">
    var SCOPE = {
        'add_url' : "{:U('Aboutme/upinfo')}",
    };
    $("#submit").click(function(){
        var url = SCOPE.add_url;
        var data = $("#commentForm").serializeArray();
        var postData = {};
        $(data).each(function(i){
            postData[this.name] = this.value;
        });
        $.post(url,postData,function(result){
        	// alert(JSON.stringify(result))
            if (result.status==1) {
                layer.msg(result.info,function(){self.location="__MODULE__/Index/index";});
            }else if(result.status==0){
                layer.msg(result.info);
            }
        },"JSON");
        return false;
    });
</script>

</body>
</html>